<?php
session_start();
include('functions.php');
connect();
$email=$_REQUEST["email"];
$password=md5($_REQUEST["password"]);
$q=mysql_query("select id from person where email='$email' and password='$password'");
if (mysql_num_rows($q)==0)
	echo "ایمیل یا کلمه ی عبور صحیح نمی باشد.";
else{
	$s=mysql_fetch_row($q);
	$s=$s[0];
	$_SESSION["id"]=$s;
}
